<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%--forEach标签使用--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
    <head>
        <title>SSM 结果</title>
        <style>
            div{
                padding: 10px 10px 0 10px;
            }
        </style>
    </head>
    <body>
        <div>
            <h3>SSM ${msg}</h3>
            <fieldset>
                <table width="500px" border="1" align="center">
                    <tr>
                        <th>账号</th>
                        <th>姓名</th>
                        <th>金额</th>
                    </tr>
                    <c:forEach items="${accounts}" var="account" >
                        <tr>
                            <td>${account.cardNo}</td>
                            <td>${account.name}</td>
                            <td>${account.money}</td>
                        </tr>
                    </c:forEach>
                </table>
            </fieldset>
        </div>
    </body>
</html>
